package com.xinchao.service;

import com.xinchao.model.AsstRoute;
import com.xinchao.model.AsstTravelRecord;
import com.xinchao.model.User;
import com.xinchao.model.dto.RouteInfoDTO;
import com.xinchao.model.page.PageInfo;

import java.util.List;

/**
 * 播控助手管理后台service
 * @Author: xp630
 * @Date: 2018/9/25 16:19
 */
public interface AsstService {
    /**
     * 按照指定城市获取路线列表
     * @param cityCode
     * @return
     */
    public List<AsstRoute> getRouteListByCity(String cityCode);

    /**
     * 批量添加用户的线路信息
     * @param userId
     * @param routeList
     * @return
     */
    public void bindUserRoutes(Long userId,List<Long> routeList,String cityCode);

    public void bindRouteUsers(Long routeId, List<Long> userList, String cityCode, User current, String remortIP);

    public List<AsstTravelRecord> getUserRouteRecords(Long userId);

    public PageInfo<RouteInfoDTO> listByPage(String routeName, String userName, String cityCode, Integer pageNum, Integer pageSize);

}
